package com.cn.business;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Description: BusinessApplication
 * @Author: ZhangMao
 * @Date: 2022-03-12
 */

@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)
//“exclude= DataSourceAutoConfiguration.class”，排除datasource的自动注解
@EnableFeignClients(basePackages = {"feign", "com.cn.api"})
@EnableDiscoveryClient
public class BusinessApplication {
    public static  void main(String[] args){
        SpringApplication.run(BusinessApplication.class,args);
    }
}
